var width = 1700;
var height = 3000;

var wlw = 400;
var wll = 150;
var lww = 150;
var lwl = 250;
var wlh = 400;
var lwh = 360;

var space = 350;

var dz = wll*3 + lwl
var objectR = Math.sqrt((wll+lwl/2)*(wll+lwl/2) + (wlw*wlw/4)),

Model = {
    getModel : function() {

         var modelList = {
                    
             "building" : [
             // No.1
             {  
                "PosX" : -width/2 + wlw/2 + 0 * dz,
                "PosY" : 0,
                "PosZ" : -height/2 + wll/2,
                "Radius" : wlw,
                "Width" : wlw,
                "Length" : wll,
                "Height" :　wlh,  
                
                "Component" : [{
                    "PosX" : -width/2 + wlw/2 + 0 * dz,
                    "PosY" : 0,
                    "PosZ" : -height/2 + wll/2,
                    "Radius" : wlw,
                    "Width" : wlw,
                    "Length" : wll,
                    "Height" :　wlh,                           
                    "Color" : [
                    {  
                        "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                }],
            },
             
             
             // No.2
             
             {
                "PosX" :width/2 - wlw/2 ,
                "PosY" : 0,
                "PosZ" : -height/2 + wll/2 + 0*dz,
                "Radius" : 100,
                "Height" :　wlh, 
                "Width" : wlw,
                "Length" : wll,
                
                "Component" : [{     
                    "PosX" :width/2 - wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + wll/2 + 0*dz,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,           
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                }],
            },
           // No.3
            {
                "PosX" :-width/2 + wlw/2 ,
                "PosY" : 0,
                "PosZ" : -height/2 + wll + space + lwl/2,
                "Radius" : Math.sqrt((wll+lwl/2)*(wll+lwl/2) + (wlw*wlw/4)),
                "Height" :　wlh, 
                "Width" : wlw,
                "Length" : wll,        
                 "Component" : [{  
                    "PosX" :-width/2 + wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + wll + space ,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                   
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                 },
                 {
                    "PosX" :-width/2 + lww/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + wll + space + lwl/2,
                    "Radius" : 100,
                    "Height" :　lwh, 
                    "Width" : lww,
                    "Length" : lwl,                   
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                 // // No.7
                {
                    "PosX" :-width/2 + wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 1.5*wll + space + lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                          
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
              ],
            },
//             
             // // No.4
            {
                "PosX" :width/2 - wlw/2 ,
                "PosY" : 0,
                 "PosZ" : -height/2 + wll + space + lwl/2,
                "Radius" : Math.sqrt((wll+lwl/2)*(wll+lwl/2) + (wlw*wlw/4)),
                "Height" :　wlh, 
                "Width" : wlw,
                "Length" : wll,  
                "Component" : [{   
                    "PosX" :width/2 - wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + wll + space,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                     
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                 {
                    "PosX" :width/2 - lww/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + wll + space + lwl/2,
                    "Radius" : 100,
                    "Height" :　lwh, 
                    "Width" : lww,
                    "Length" : lwl,                      
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                {
                    "PosX" :width/2 - wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 1.5*wll + space + lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                    
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                 },
               ],
            },
            
            
                           // No.9
            {
                "PosX" :-width/2 + wlw/2 ,
                "PosY" : 0,
                "PosZ" : -height/2 + 2.5*wll + 2*space + 1.5*lwl,
                "Radius" : objectR,
                "Height" :　wlh, 
                "Width" : wlw,
                "Length" : wll,   
                "Component" : [{    
                    "PosX" :-width/2 + wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 2*wll + 2*space + lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                       
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                                                        // No.11
                {
                    "PosX" :-width/2 + lww/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 2.5*wll + 2*space + 1.5*lwl,
                    "Radius" : 100,
                    "Height" :　lwh, 
                    "Width" : lww,
                    "Length" : lwl,                  
                    "Color" : [{
                            "value" : 0xff3333,
                            "texture" :"image/wall.jpg",
                        },{
                            "value" : 0xffff33,
                             "texture" :  "image/wall.jpg",
                        },{
                             "value" : 0xff8800,
                              "texture" :  "image/wall.jpg",
                        },{
                             "value" : 0x3333ff,
                              "texture" :  "image/wall.jpg",
                        },{
                             "value" : 0x33ff33,
                              "texture" :  "image/wall.jpg",
                        },{
                             "value" : 0x8833ff,
                              "texture" :  "image/wall.jpg",
                        }],
                 },
                                                        // // No.13
                 {
                    "PosX" :-width/2 + wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 3*wll + 2*space + 2*lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,   
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                  },
               ],
            },
            
                                       // No.10
            {
                "PosX" :width/2 - wlw/2 ,
                "PosY" : 0,
                "PosZ" : -height/2 + 2.5*wll + 2*space + 1.5*lwl,
                "Radius" : objectR,
                "Height" :　wlh, 
                "Width" : wlw,
                "Length" : wll,    
                "Component" : [{    
                    "PosX" :width/2 - wlw/2 ,
                    "PosY" : 0,
                    "PosZ" :-height/2 + 2*wll + 2*space + lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                   
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                                                       // // No.12
                {
                    "PosX" :width/2 - lww/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 2.5*wll + 2*space + 1.5*lwl,
                    "Radius" : 100,
                    "Height" :　lwh, 
                    "Width" : lww,
                    "Length" : lwl,   
                    "PosX" :width/2 - lww/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 2.5*wll + 2*space + 1.5*lwl,
                    "Radius" : 100,
                    "Height" :　lwh, 
                    "Width" : lww,
                    "Length" : lwl,                     
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                 },
                                 // N0. 14
                 {
                    "PosX" :width/2 - wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 3*wll + 2*space + 2*lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,   
                  
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                 },
              ],
            },
 
                          // No.15
            {
                "PosX" :-width/2 + wlw/2 ,
                "PosY" : 0,
                "PosZ" :  -height/2 + 4*wll + 3*space + 2.5*lwl,
                "Radius" :objectR,
                "Height" :　wlh, 
                "Width" : wlw,
                "Length" : wll,
                "Component" : [{    
                    "PosX" :-width/2 + wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 3.5*wll + 3*space + 2*lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                      
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                
                 {
                    "PosX" :-width/2 + lww/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 4*wll + 3*space + 2.5*lwl,
                    "Radius" : 100,
                    "Height" :　lwh, 
                    "Width" : lww,
                    "Length" : lwl,                       
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                 
                 // No.19
                   {
                    "PosX" :-width/2 + wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 4*wll + 3*space + 3*lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                       
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },

               ],
            },
            
            
                                      // No.16
            {
                "PosX" :width/2 - wlw/2 ,
                "PosY" : 0,
                "PosZ" : -height/2 + 3.5*wll + 3*space + 2*lwl,
                "Radius" : objectR,
                "Height" :　wlh, 
                "Width" : wlw,
                "Length" : wll,
                "Component" : [{    
                    "PosX" :width/2 - wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 3.5*wll + 3*space + 2*lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                      
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                
                 {
                    "PosX" :width/2 - lww/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 4*wll + 3*space + 2.5*lwl,
                    "Radius" : 100,
                    "Height" :　lwh, 
                    "Width" : lww,
                    "Length" : lwl,                       
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },
                 
                 // No.20
                   {
                    "PosX" :width/2 - wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 4*wll + 3*space + 3*lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                       
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                },

               ],
            },
            
            
            

//             
              // No.21
             {
                "PosX" : -width/2 + wlw/2 + 0 * dz,
                "PosY" : 0,
                "PosZ" : -height/2 + 4.5*wll + 4*space + 3.5*lwl,
                "Radius" : wlw/2,
                "Width" : wlw,
                "Length" : wll,
                "Height" :　wlh,    
                "Component" : [
                {      
                    "PosX" : -width/2 + wlw/2 + 0 * dz,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 4.5*wll + 4*space + 3.5*lwl,
                    "Radius" : wlw,
                    "Width" : wlw,
                    "Length" : wll,
                    "Height" :　wlh,               
                    "Color" : [{
                       "value" : 0xff3333,
                       "texture" :"image/wall.jpg",
                    },{
                        "value" : 0xffff33,
                         "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0xff8800,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x3333ff,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x33ff33,
                          "texture" :  "image/wall.jpg",
                    },{
                         "value" : 0x8833ff,
                          "texture" :  "image/wall.jpg",
                    }],
                    },
                ]
            },
          
             // No.22
             
             {
                "PosX" :width/2 - wlw/2 ,
                "PosY" : 0,
                "PosZ" : -height/2 + 4.5*wll + 4*space + 3.5*lwl,
                "Radius" : wlw/2,
                "Height" :　wlh, 
                "Width" : wlw,
                "Length" : wll,   
                "Component" : [    
                    {  
                    "PosX" :width/2 - wlw/2 ,
                    "PosY" : 0,
                    "PosZ" : -height/2 + 4.5*wll + 4*space + 3.5*lwl,
                    "Radius" : 100,
                    "Height" :　wlh, 
                    "Width" : wlw,
                    "Length" : wll,                
                    "Color" : [{
                           "value" : 0xff3333,
                           "texture" :"image/wall.jpg",
                        },{
                            "value" : 0xffff33,
                             "texture" :  "image/wall.jpg",
                        },{
                             "value" : 0xff8800,
                              "texture" :  "image/wall.jpg",
                        },{
                             "value" : 0x3333ff,
                              "texture" :  "image/wall.jpg",
                        },{
                             "value" : 0x33ff33,
                              "texture" :  "image/wall.jpg",
                        },{
                             "value" : 0x8833ff,
                              "texture" :  "image/wall.jpg",
                        }],
                    },
               ]
            },
//            
             ]
        }
        return modelList;
    }
}         